// 第三方库版本配置
const LIB_VERSION = {
    JQUERY: '3.6.0',
    BOOTSTRAP: '5.1.3',
    FONT_AWESOME: '6.0.0',
    ECHARTS: '5.2.2',
    CHARTJS: '3.7.0'
};

// CDN 配置
const CDN_CONFIG = {
    // 使用阿里云 CDN
    ALIYUN: {
        JQUERY: `https://cdn.jsdelivr.cn/npm/jquery@${LIB_VERSION.JQUERY}/dist/jquery.min.js`,
        BOOTSTRAP_CSS: `https://cdn.jsdelivr.cn/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css`,
        BOOTSTRAP_JS: `https://cdn.jsdelivr.cn/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js`,
        FONT_AWESOME: `https://cdn.jsdelivr.cn/npm/@fortawesome/fontawesome-free@${LIB_VERSION.FONT_AWESOME}/css/all.min.css`,
        ECHARTS: `https://cdn.jsdelivr.cn/npm/echarts@${LIB_VERSION.ECHARTS}/dist/echarts.min.js`,
        CHARTJS: `https://cdn.jsdelivr.cn/npm/chart.js@${LIB_VERSION.CHARTJS}/dist/chart.min.js`
    },
    // 使用字节跳动 CDN
    BYTEDANCE: {
        JQUERY: `https://lf26-cdn-tos.bytecdntp.com/cdn/jquery/${LIB_VERSION.JQUERY}/jquery.min.js`,
        BOOTSTRAP_CSS: `https://lf26-cdn-tos.bytecdntp.com/cdn/bootstrap/${LIB_VERSION.BOOTSTRAP}/css/bootstrap.min.css`,
        BOOTSTRAP_JS: `https://lf26-cdn-tos.bytecdntp.com/cdn/bootstrap/${LIB_VERSION.BOOTSTRAP}/js/bootstrap.bundle.min.js`,
        FONT_AWESOME: `https://lf26-cdn-tos.bytecdntp.com/cdn/font-awesome/${LIB_VERSION.FONT_AWESOME}/css/all.min.css`,
        ECHARTS: `https://lf26-cdn-tos.bytecdntp.com/cdn/echarts/${LIB_VERSION.ECHARTS}/echarts.min.js`,
        CHARTJS: `https://lf26-cdn-tos.bytecdntp.com/cdn/chart.js/${LIB_VERSION.CHARTJS}/chart.min.js`
    }
};

// 百度地图配置
const BAIDU_MAP_CONFIG = {
    API_KEY: 'spEZ8x14LoDN10ejoQD7GdxOEJYOwqcw',
    VERSION: '3.0',
    // 使用本地文件
    LOCAL_URL: '/js/map/bmap.js',
    // 使用官方 CDN
    CDN_URL: `https://api.map.baidu.com/api?v=3.0&ak=spEZ8x14LoDN10ejoQD7GdxOEJYOwqcw&s=1`
};

// 默认使用字节跳动 CDN
const DEFAULT_CDN = CDN_CONFIG.BYTEDANCE; 